<?php

class ConfigurationsController extends AppController {
    
    public $layout = "admin";

    public $maint_configuracion = array(
        "fields" => array(
            "Configuración del Sitio" => array(
                array("name" => 'empresa', "label" => 'Empresa'),
                array("name" => 'web', "label" => 'Web'),
                array("name" => 'telefono', "label" => 'Teléfono'),
                array("name" => 'fax', "label" => 'Fax'),
                array("name" => 'footer', "label" => 'Leyenda Pie')
            ),
            "Configuración de Mensajería" => array(
                array("name" => 'email', "label" => 'Email'),
                array("name" => 'server_emails', "label" => 'Servidor de Emails', "presentation" => 'SERVIDORES', 'classparams' => 'SMTP'),
                array("name" => 'server_sms', "label" => 'Servidor de SMS', "presentation" => 'SERVIDORES', 'classparams' => 'SMS'),
            )
        )
    );

    public function edit($id = null) {
        $this->maint = $this->maint_configuracion;
        parent::edit($id);
    }

    public function index() {
        $this->redirect(array('action' => 'edit', 1));
    }

}